import { getHttp } from '../common/http';
export async function getErrbookList(key:string,page:number,size:number) {
  try
  {
    const http = getHttp();
    return (await http(`user-errbook/`, {
      method: "get",
      params: {
        page: page,
        size: size,
        key:key
      },
    }))
  }catch(e){
    return null
  }
 
}

export async function putUserErrBook(data:any) {
  if(data.length == 0) return;
  console.log(data);
  const http = getHttp();
  return (await http(`user-errbook`, {
  method: "put",
  body: data,
  }))
}
